package com.yuncheng.spcyApi.snokeFlake.config;

import com.yuncheng.spcyApi.snokeFlake.contract.IdGeneratorOptions;
import com.yuncheng.spcyApi.snokeFlake.idgen.GenIdHelper;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 雪花算法-初始化参数
 */
@Configuration
public class InitOptionsConfig {
    @Bean
    public void initOptions(){
        GenIdHelper.setIdGenerator(new IdGeneratorOptions());
    }
}
